Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(svm): override chain id in executing slow fill #614

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

Reinis-FRP
Copy link
Contributor

Adds overriding to local chain_id in execute_v3_slow_relay_leaf. This makes SVM behavior consistent with EVM SpokePool: if someone was trying to replay slow fill targeted at another chain, this should fail the proof verification due to mismatched chain id.

Copy link
Member

@chrismaree chrismaree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really good check. the base slow fill implementation was missing many of these.

Copy link
Contributor

@md0x md0x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Reinis-FRP Reinis-FRP merged commit 67ad74e into master Sep 20, 2024
9 checks passed
@Reinis-FRP Reinis-FRP deleted the reinis-frp/slow-fill-chain-id branch September 20, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants